//
//  WebContentViewController.swift
//  LongTermInsurance
//
//  Created by zolobdz on 2019/1/13.
//  Copyright © 2019年 HeChao. All rights reserved.
//

import UIKit
import WebKit

class WebContentViewController: BaseViewController {

    //MARK: Propertys
    lazy var webView: WKWebView = {
        let view = WKWebView()
        return view
    }()

    lazy var urlString = ""
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(webView)
        webView.snp.remakeConstraints { (maker) in
            maker.edges.equalToSuperview()
        }
        if let url = URL(string: urlString){
            let urlRequest = URLRequest(url: url)
            webView.load(urlRequest)
        }
        
    }

}
